<template>
    <section class="wrapper">
      <myHeader class="header" :obj="myObj" @events="events"></myHeader>
      <main>
        <mt-navbar v-model="selected" class="myNavbar">
          <mt-tab-item id="1" class="myNav2">已购买</mt-tab-item>
          <mt-tab-item id="2" class="myNav2">待评价</mt-tab-item>
        </mt-navbar>
        <mt-tab-container class="container" v-model="selected">
          <mt-tab-container-item class="item item_0308"  id="1">
            <!-- 附近的 -->
            <div class="paddingT_10">
              <router-link to="/classRoomDetails">
              <section class="apptItem_0312">
                <div class="left_0312"><i class="face_0312"></i></div>
                <div class="right_0312">
                  <h2 class="h2_0312">企业培训这样子最有效</h2>
                  <p class="personText_0312"><mark class="mark_0312">刘宏</mark>人力资源总裁、国企培训讲师</p>
                  <p class="meetTime_0312">见面时间：双方协商</p>
                  <div class="wait_0312"><span class="waitTitle_0312">等待确认</span><span class="time_0312">¥300.00 约2小时</span></div>
                </div>
              </section>
              </router-link>
            </div>
            <!-- 附近的 -->
          </mt-tab-container-item>
           <mt-tab-container-item class="item item_0308"  id="2">
            <!-- 附近的 -->
            <div class="paddingT_10">
              <router-link to="/classRoomDetails">
              <section class="apptItem_0312">
                <div class="left_0312"><i class="face_0312"></i></div>
                <div class="right_0312">
                  <h2 class="h2_0312">企业培训这样子最有效</h2>
                  <p class="personText_0312"><mark class="mark_0312">刘宏</mark>人力资源总裁、国企培训讲师</p>
                  <p class="meetTime_0312">见面时间：双方协商</p>
                  <div class="wait_0312"><span class="waitTitle_0312">等待确认</span><span class="time_0312">¥300.00 约2小时</span></div>
                </div>
              </section>
              </router-link>
            </div>
            <!-- 附近的 -->
          </mt-tab-container-item>
        </mt-tab-container>
      </main>
    </section>
</template>
<script>
import myHeader from './base/myHeader';
export default {
  props:['obj'],
  data () {
    return {
      myObj: {
        type: 3,
        text: '购买的内容'
      },
      selected: '1'
      
    }
  },
  methods: {
    events(i){
      if(i ==2) {
        history.back();
      }
    },
  },
  components: {
    myHeader
  }
}

</script>
<style lang="less">
.wrapper {
  width: 3.75rem;
  height: 100%;
  main {
    width: 3.75rem;
    height: 100%;
    padding-top: .44rem;
    position: absolute;
    top: 0;
    left: 0;
    overflow-y: auto;
    box-sizing: border-box;
    .container {
      padding-top: 1rem;
      height: 100%;
      width: 3.75rem;
      position: absolute;
      top: 0;
      box-sizing: border-box;
      >div {
        height: 100%;
      }
      .item {
        padding-top: 1.01rem;
        height: 100%;
        width: 3.75rem;
        position: absolute;
        top: 0;
        box-sizing: border-box;
        .paddingT_10 {
          padding-top: .1rem;
        }
        .apptItem_0312 {
          width: 3.55rem;
          height: 1.25rem;
          background: white;
          border-radius: .04rem;
          margin: 0 auto;
          display: flex;
          .right_0312 {
            width: 2.8rem;
            height: 100%;
            flex: 1;
            padding-top: .2rem;
            box-sizing: border-box;
            .h2_0312 {
              color: #555555;
              font-size: .16rem;
            }
            .wait_0312 {
              padding-right: .15rem;
              border-top: .01rem dashed #CFCFCF;
              height: .32rem;
              display: flex;
              align-items: center;
              justify-content: space-between;
              .waitTitle_0312 {
                color: #39393D;
                font-size: .13rem;
              }
              .time_0312 {
                color: #888888;
              }
            }
            .meetTime_0312 {
              font-size: .12rem;
              padding: .06rem 0;
              color: #828282;
            }
            .personText_0312 {
              padding-top: .11rem;
              height: .2rem;
              line-height: .2rem;
              font-size: .12rem;
              color: #828282;
              .mark_0312 {
                font-size: .14rem;
                color: #39393D;
                padding-right: .1rem;
                background: white;
              }
            }
          }
          .left_0312 {
            width: .71rem;
            height: 100%;
            padding-top: .2rem;
            box-sizing: border-box;
            .face_0312 {
              display: block;
              border-radius: 50%;
              width: .42rem;
              height: .42rem;
              background: #EBEBEB;
              margin: 0 auto;
            }
          }
        }
      }
      .item_0308 {
        overflow-y: auto;
      }
    }
  }

}
  
</style>
<style>
   .myNavbar {
    display: block;
    justify-content: space-around;
    overflow: hidden;
    padding: 0 .15rem;
    box-sizing: border-box;
    background: #FAFAFA;
    position: relative;
    z-index: 2;
  }
  .mint-navbar .myNav2 {
    display: block;
    width: .85rem;
    float: left;
    margin: 0 .4rem;
  }
  .mint-navbar .is-selected {
    border-bottom: 3px solid #557AFF!important;
  }
  .mint-navbar .myNav2 .mint-tab-item-label {
    font-size: .14rem;
  }
  .mint-navbar .is-selected .mint-tab-item-label {
    color: #557AFF;
    font-weight: 600;
    font-size: .14rem;
  }
</style>
